home *** CD-ROM | disk | FTP | other *** search
- Path: news.ecn.bgu.edu!usenet
- From: Ignatius <i-wong@wiu.edu>
- Newsgroups: comp.lang.c++
- Subject: OOP/C++
- Date: 11 Jan 1996 17:06:22 GMT
- Organization: Western Illinois University
- Message-ID: <4d3g2e$mv5@news.ecn.bgu.edu>
- NNTP-Posting-Host: tty019.wiu.bgu.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- I have a lexer and a parser classes for a particular mini computer
- language but the many huge switch/case statements are a sore in the
- eyes since they exhibit hidden dependencies.
-
- Is there a more elegant solution to it? Subclassing the tokens
- would result in so many derived token classes.
-
- Thanks for any suggestion.
-
- -- ig
-
-
-
-